money = int(input('购买商品花了多少钱'))
condition = input('请问您要参加换购活动吗？')
if condition == '是':
    change = int(input('请问您打算额外花多少元来换购？'))
    if money >= 200 and change >= 38:
        print('您获得了一瓶红酒')
    elif money >= 200 and change >= 15:
        print('您获得了面粉')
    elif money >= 100 and change >= 4:
        print('您获得了口香糖')
    elif money >= 100 and change >= 2:
        print('您获得了果汁')
    elif money >= 50 and change >= 1:
        print('您获得了可乐')
    else:
        print('您获得了个寂寞')
elif condition == '否':
    print('明白，感谢支持')
else:
    print('抱歉，我没有理解您的意思')

